from PyQt5.QtWidgets import QSystemTrayIcon, QApplication, QWidget,QMainWindow, QLabel, QLineEdit, QPushButton, QTextEdit, QSizePolicy, QVBoxLayout
from PyQt5.QtGui import QPalette, QColor,QIcon, QTextCursor
from PyQt5.QtCore import Qt, QThread, pyqtSignal, QMetaType, pyqtSlot
import random
import pygetwindow
import pyautogui
import time
import re
import json
import logging
import pyperclip
import threading
import traceback
import os
import hashlib
import sys
from aip import AipOcr

if __name__ == "__main__":
    time.sleep(10)
    window = pygetwindow.getWindowsWithTitle('接待中心')[0]
    screenshot = pyautogui.screenshot(region=(window.left, window.top,  window.width,  window.height))
    screenshot.save('screenshot.png')